Ansible @ an efficient configuration management tool-Ansible configure management-translation (10), ansible-ansibleNo written permission. Do not reprint it
Custom ModulesUntil now we have been working solely with the tools provided to us by Ansible.This does afford us a lot of power, and make many things possible. However, if youhave something particularly compl
Ansible @ an efficient configuration management tool-Ansible configure management-translation (4), ansible-ansibleDo not reprint without written permission
Due to the long content in Chapter 3, I will divide it into several parts for translation.
Advanced PlaybooksSo far the playbooks that we have looked at are simple and just run a number ofmodules in order.
Salt-master startup processEnvironment introductionWe use the following environment to analyze the SaltStack source code:System: CentOS-7Python version: 2.7.5Saltstack version: 2015.5.2 (Lithium)We use the following method to install salt-master:Rpm-Uvh http://mirrors.opencas.cn/epel/7/x86_64/e/epel-release-7-5.noarch.rpmYum install salt-masterScenario descriptio
Ansible @ an efficient configuration management tool-Ansible configure management-translation (8), ansible-ansibleIf you do not have written authorization, do not repeat Chapter 4. Use of Ansible in large projects
RolesIf your playbooks start expanding beyond what includes can help you solve, or youstart gathering a l
Ansible @ an efficient configuration management tool-Ansible configure management-translation (5), ansible-ansibleDo not reprint advanced Playbook without written permission
Extra variablesYou may have seen in our template example in the previous chapter that we used avariable called group_names . This is one of the magic variables that are provided byAnsible it
playbooks statement is configured and you set the configuration push to the specified remote host application. Playbooks is the same as Saltstack's SLS (Salt State Tree) and puppet configuration management. Playbooks uses YAML format, which is simple to use in grammar. The following author uses Ansilbe to implement MySQL installation, MySQL replication environment configuration, MySQL replication settings.Figure 6: Directory structure diagramIn order
Pre-reading
Environment Description
Commencement
Create a user and key authentication management environment for the salt SSH Environment
Configure mine to get the minion ID and IP address
Generate salt rosters
Apply salt SSH
Remarks
The salt 0.17 version has been released. An important feature of this version is the i
[group_name] subdirectories under roles/, not all to be created; for example:
/etc/ansible/roles/(roles directory defined in/etc/ansible/ansible.cfg)
webserver/
Files/: All files used in this role are placed in this directory;
Templates/:jinja2 template file storage location;
tasks/: Task list file; There can be multiple, but at least one file called main.yml;
handlers/: Processor list file; Th
protected] ~]# Ansible-playbook Mysql-server.yamlSeeing the results, ok=2 changed=1 indicates that the Mysql-server installation on the client has been successful!Verify that Mysql-server is successful[Email protected] ~]# ansible all-a "/bin/rpm-q mysql-server"[Email protected]ble ~]# ansible all-a "/sbin/service mysqld start" #启动mysqldCase 2 Creating a crontab
Second, the source code installation ChapterUsing the SALT-SSH feature requires the client system Python version 2.6+1.salt-minion End Environment:System: SUSE SP3 64bitPython version: 2.6.6RPM Package: Pcre-devel #不安装, compile Swig error2. Configure/etc/salt/rosterCases:10.10.10.30: host:10.10.10.30 user:syspub #普通用户, with no password sudo permissions passwd:
We know that if the password is hashed directly, then the hacker can get a hash value by obtaining this password, and then by checking the hash value dictionary (for example, MD5 password cracking site), the password of a user.Adding salt can solve this problem to some extent. The so-called salt method is adding "seasoning". The basic idea is this: when the user first provides the password (usually at the t
Salt error Job for salt-master.service failed because the control process exited with error code .,Problem
Amp; emsap ;? When I use salt on a virtual machine, I can't use salt because I read the document and learned it.
ps aux | grep salt
Amp; emsap ;? We found that both
Transferred from: http://blog.csdn.net/blade2001/article/details/6341078We know that if the password is hashed directly, then the hacker can get a hash value by obtaining this password, and then by checking the hash value dictionary (for example, MD5 password cracking site), the password of a user.Adding salt can solve this problem to some extent. The so-called salt method is adding "seasoning". The basic i
I. State the Workflow:1. According to the existing password string to generate a password + salt string, You can also store the salt of the encrypted string in the database (see requirements),2. Verify that the submitted password string is encrypted and then obtained from the database with the existing salt combination cipher +
If the password is hashed directly, the hacker can obtain the password of a user by querying the hash dictionary (for example, MD5 password cracking website. After adding the salt, it will be much more difficult. even if you have obtained the salt and the final ciphertext, cracking is quite troublesome. If you add some salt (
First, RPM installation ChapterUsing the SALT-SSH feature requires the client system Python version 2.6+1.salt-minion End Environment:System: CentOS 6.5 64bitPython version: 2.6.62. Configure/etc/salt/rosterCases:10.10.10.30: host:10.10.10.30 user:syspub #普通用户, with no password sudo permissions passwd:123456aa sudo:true Timeout:15When the number of clients,
How to add salt?
In order to enhance the safety of MD5, in addition to the new algorithm to add a part of the value of salt, salt value is a randomly generated set of strings, can include random uppercase and lowercase letters, numbers, characters, the number of digits can be based on requirements and different, the use of various
Ansible automated O M tool and ansible automated
1 Ansible
1> introduction to ansible
Ansible is a new automatic O M tool developed based on Python. It integrates the advantages of many O M tools (puppet, cfengine, chef, func, fabric, implements batch system configuration
First, IntroductionUsually the use of Saltstack is in the master's server directly command operation, this is not a major event for operators, but there will be errors, and once the error, there will be irreversible consequences.Second, the frameworkThe Django framework is used here, through the encapsulation of Salt-api, by passing in commands, executing the API, and returning the results to the page display. Note: In order to prevent misoperation, w
Salt-adding encryption is a way to encrypt the system login password by associating each password with an n-bit random number called a salt.Salt-adding encryption is a way to encrypt the system login password by associating each password with an n-bit random number called a salt. Random numbers change whenever the password is changed. Random numbers are stored unencrypted in the password file so that everyo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.